<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2023/5/31 0031
  Time: 10:40
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<table align="center" border="1px" id="tb1">
    <tr>
        <td>宠物昵称</td>
        <td>出生日期</td>
        <td>性别</td>
    </tr>
    <c:forEach items="${page.petLIst}" var="pet">
        <tr>
            <td>${pet.petName}</td>
            <td>${pet.birthday}</td>
            <td>${pet.petSex}</td>
        </tr>
    </c:forEach>
    <tr>
        <td colspan="3">总页数:${page.totalPageCount}</td>
    </tr>
    <tr>
        <td colspan="3">每页显示${page.pageSize}条</td>
    </tr>
    <tr>
        <td colspan="3">当前是第${page.currPageNo}页</td>
    </tr>
    <tr>
        <td colspan="3">一共有${page.totalCount}条</td>
    </tr>
    <tr>
        <td colspan="3"><a href="${pageContext.request.contextPath}/ListPageServlet?currPageNo=1">首页</a></td>
    </tr>
    <tr>
        <td colspan="3"><a href="${pageContext.request.contextPath}/ListPageServlet?currPageNo=${page.currPageNo-1}">上一页</a></td>
    </tr>
    <tr>
        <td colspan="3"><a href="${pageContext.request.contextPath}/ListPageServlet?currPageNo=${page.currPageNo+1}">下一页</a></td>
    </tr>
    <tr>
        <td colspan="3"><a href="${pageContext.request.contextPath}/ListPageServlet?currPageNo=4">最后一页</a></td>
    </tr>
</table>
</body>
</html>
